POV-Ray : Newsgroups : povray.general : How about $ for declare? : Re: How about $ for declare? Server Time
3 Aug 2024 00:25:52 EDT (-0400)
  Re: How about $ for declare?  
From: Brian Elliott
Date: 14 Aug 2004 04:23:36
Message: <411dcc08@news.povray.org>
"Slime" <fak### [at] emailaddress> wrote in message
news:411dab30@news.povray.org...
> > #declare sph=sphere; //Abreviate sphere to sph
> > #declare boite=box; //Translate box to boite (french)
>
> Erm, this doesn't work. Were you saying it does or suggesting it as a
> feature?

You're quite right.  I tried it, and to alias it, you'd have to write:

  #macro sph() sphere #end

  sph() { <sphere and texture options> }

And the parentheses would have to be included with every invocation, adding
two more characters and obfuscation to otherwise straight code.  It would
hardly be a worthwhile "abbreviation"

Brian   :-)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.